This phrase is used as "being attentive, with all the senses", as a variant of "having energy, not being asleep", also as "being excited, or under the effect of some stimulant drug", and are all related to the concept of battery (for battery). See also "put the batteries", "charge someone the batteries", "get out of the battery have someone in the battery".